home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1999 March / EnigmA AMIGA RUN 35 (1999)(G.R. Edizioni)(IT)[!][issue 1999-03].iso / earcd / devel / vbcc-src / machines / ppc / schedule.h < prev   
Text File  |  1999-01-01  |  2KB  |  54 lines

  1. /*
  2.  * vscppc
  3.  *
  4.  * vbcc PowerPC scheduler
  5.  * (C)1998 by Frank Wille <frank@phoenix.owl.de>
  6.  *
  7.  * vscppc is freeware and part of the portable and retargetable ANSI C
  8.  * compiler vbcc, copyright (c) 1995-98 by Volker Barthelmann.
  9.  * vscppc may be freely redistributed as long as no modifications are
  10.  * made and nothing is charged for it. Non-commercial usage is allowed
  11.  * without any restrictions.
  12.  * EVERY PRODUCT OR PROGRAM DERIVED DIRECTLY FROM MY SOURCE MAY NOT BE
  13.  * SOLD COMMERCIALLY WITHOUT PERMISSION FROM THE AUTHOR.
  14.  *
  15.  * History:
  16.  * V0.3   20-Jul-98
  17.  *        Differentiation between 603 and 604. Now, scheduling takes
  18.  *        place with regard to the real PowerPC architecture.
  19.  * V0.1   10-Jul-98
  20.  *        vscppc seems to be stable enough, after some tests.
  21.  *        However, it still needs a lot of fine tuning.
  22.  *        A differentiation between the PPC CPUs (603e, 604e) is missing.
  23.  * V0.0   09-Jul-98
  24.  *        File created.
  25.  *
  26.  */
  27.  
  28. #define PIPES 7   /* the max. number of pipes, as required by the 604 */
  29.  
  30. /* Pipe Names 603 */
  31. #define BPU 0     /* Branch Prediction Unit */
  32. #define SRU 1     /* Special Reg. Unit */
  33. #define IU 2      /* Integer Unit */
  34. #define FPU 5     /* Floating Point Unit */
  35. #define LSU 6     /* Load Store Unit */
  36.  
  37. /* Pipe Names 604 */
  38. #define CRU 1     /* Condition Register Unit */
  39. #define SCIU1 2   /* Single Cycle Integer Unit #1 */
  40. #define SCIU2 3   /* Single Cycle Integer Unit #2 */
  41. #define MCIU 4    /* Multiple Cycle Integer Unit */
  42.  
  43.  
  44. #define REGS 76   /* 32 GPR, 32 FPR, 8 CCR, LR, CTR, XER, FPSCR */
  45.  
  46. /* REG-offsets */
  47. #define GPR 0
  48. #define FPR 32
  49. #define CCR 64
  50. #define XER 72
  51. #define CTR 73
  52. #define LR 74
  53. #define FPSCR 75
  54.